<tal:block tal:repeat="users  getComments/result">
<div class="TrgCom ">
<div class="blkCont">
<p class="UserImg"><img src="/Uploads/users/<?php echo $ctx->users['photo']; ?>" height="45" width="45" alt="Tock" title="Tock" /></p>
</div>
<div class="blkCont">
<div class="wid278">
<p class="UName"><a href="#"><?php echo $ctx->users['first_name']; ?></a></p>
<p class="Desc"><?php echo $ctx->users['comment']; ?></p>
<p class="Date"><?php echo ago(strtotime($ctx->users['added_date'])) ?></p>
</div>
</div>
<div class="Fright">
<?php if($ctx->users['user_id']==$_SESSION["sess_userid"] || $ctx->users['owner_id']==$_SESSION["sess_userid"]) {  ?>
<span><a href="javascript:void(0);" onclick="deleteComment(<?php echo $ctx->users['id'];?>);"><img src="/images/CloseIcon.png" alt="Close" border="0" class="img_inline" title="Delete"/></a></span>
<?php } ?>
</div>
<div class="clear"></div>
</div>
</tal:block>


